<style>
p {display:table}

#A.B, #c.d { color: blue }

[id=E],[class=F],[id=g],[class=h] { color: red } /* should not match, attribute selector values are matched case-sensitively even in quirks mode */
</style>

<p id=a class=b>blue
<p id=C class=D>blue

<p id=e class=f>black
<p id=G class=H>black